var dictionary = {};


dictionary.find = function (code) {

	for (var i in dicGroup){
		var r = dicGroup[i];
		if (r.code==code) {
			return r.subset;
		}
	}
};

var dicGroup=[];

dicGroup.push({"text":"性别","code":"sex","subset":[{"text":"男","code":"1"},{"text":"女","code":"0"}]});
dicGroup.push({"text":"是否","code":"yes","subset":[{"text":"是","id":"1"},{"text":"否","id":"0"}]});
dicGroup.push({"text":"有误","code":"have","subset":[{"text":"有","id":"1"},{"text":"无","id":"0"}]});
dicGroup.push({"text":"是否有效","code":"effect","subset":[{"text":"有效","id":"1"},{"text":"无效","id":"0"}]});












dicGroup.push({"text":"控件","code":"tags","subset":[{"text":"文本框","code":"1"},
											   {"text":"日期框","code":"2"},
											   {"text":"数字框","code":"3"},
											   {"text":"复选框","code":"4"},
											   {"text":"单选框","code":"5"},
											  ]});




